export const INCREMENT = 'increment'
export const DECREMENT = 'decrement'

export const increment = payload => ({type:INCREMENT, payload})

export const decrement = payload => ({type:DECREMENT, payload})

export const increment_sync = payload => {
    return dispatch => {
        setTimeout(() => {
            dispatch(increment(payload))
        }, 2000) 
    } 
}
